public class Declaration {

	private Ids idList;

	public Declaration(Tokens tokens){
		this.parse(tokens);
	}

	public void parse(Tokens tokens){
		tokens.skipToken(); 
		// check for an ID
		if(tokens.getToken() == 32){
			this.idList = new Ids(tokens);
		}
		// check for ';'
		if(tokens.getToken() != 12){
			System.err.println("Declarations must end with a \";\"");
			System.exit(0);
		}
		tokens.skipToken();
	}
}